import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { UnitDetailPage } from './unit-detail/unit-detail'
import { MapSearchPage } from '../map/map-search/map-search'
/**
 * Generated class for the UnitPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-unit',
  templateUrl: 'unit.html',
})
export class UnitPage {

  data = [{ id: "zqh001", name: "张三"},{ id: "zqh002", name: "李四"}];
  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  goDetail(item){
    this.navCtrl.push("UnitDetailPage",{
      message:  item
    });
  }

  goCollectUnit(){
    this.navCtrl.push("MapSearchPage");
  }
}
